<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Table vertical-align</title>
    <style>
        @page {
            size: 820px;
        }
        @-epubx-page-template {
            .partition {
                width: 398px;
                height: 198px;
                border: rgba(0, 0, 255, 0.2) solid 1px;
                -epubx-flow-from: body;
            }
            .left {
                left: 10px;
            }
            .right {
                right: 10px;
            }

            @-epubx-page-master {
                @-epubx-partition {
                    bottom: 0;
                    left: 0;
                    right: 0;
                    height: 10px;
                    font-size: 10px;
                    line-height: 10px;
                    text-align: center;
                    content: counter(page);
                }
                @-epubx-partition class(partition) class(right) {
                    top: 610px;
                }
                @-epubx-partition class(partition) class(right) {
                    top: 410px;
                }
                @-epubx-partition class(partition) class(right) {
                    top: 210px;
                }
                @-epubx-partition class(partition) class(right) {
                    top: 10px;
                }
                @-epubx-partition class(partition) class(left) {
                    top: 610px;
                }
                @-epubx-partition class(partition) class(left) {
                    top: 410px;
                }
                @-epubx-partition class(partition) class(left) {
                    top: 210px;
                }
                @-epubx-partition class(partition) class(left) {
                    top: 10px;
                }
            }
        }
        :root {
            font-size: 10px;
            line-height: 12px;
            widows: 1;
            orphans: 1;
             text-align: justify;
        }
        body {
            margin: 0 10px;
        }
        section {
            break-after: column;
        }
        table {
            border: 2px black solid;
            border-spacing: 2px;
        }
        figure {
            margin: 0;
            border: 2px black solid;
            border-collapse: separate;
            border-spacing: 2px;
            display: table;
        }
        figcaption {
            display: table-caption;
            caption-side: bottom;
        }
        caption {
            caption-side: bottom;
        }
        .border-collapse {
            border-collapse: collapse;
        }
        tr, .tr {
            border: 1px blue solid;
        }
        th, td, .th, .td {
            border: 1px gray solid;
            line-height: 16px;
        }
        th > div, td > div, .th > div, .td > div {
            background: #DDD;
        }
        .tr {
            display: table-row;
        }
        .th, .td {
            display: table-cell;
        }
        .highlight {
            background: #FFDDDD;
        }
        col {
            width: 45px;
        }
    </style>
</head>
<body>

<section>
    <table>
        <col><col><col><col><col>
        <tr>
            <td style="vertical-align: baseline">
                <span style="font-size: 200%">(1) This</span> is a long cell.<br>
                (2) This is a long cell.<br>
                (3) This is a long cell.<br>
                <span style="font-size: 200%">(4) This</span> is a long cell.<br>
                (5) This is a long cell.
                (6) This is a long cell.
                (7) This is a long cell.
                (8) This is a long cell.
                (8) This is a long cell.
                (8) This is a long cell.
                (8) This is a long cell.
                (8) This is a long cell.
                (8) This is a long cell.
                (8) This is a long cell.
                (8) This is a long cell.
                (8) This is a long cell.
            </td>
            <td style="vertical-align: baseline">
                vertical-align: baseline.
                vertical-align: baseline.
                vertical-align: baseline.
                vertical-align: baseline.
                vertical-align: baseline.
            </td>
            <td style="vertical-align: top">
                vertical-align: top.
                vertical-align: top.
                vertical-align: top.
                vertical-align: top.
                vertical-align: top.
                vertical-align: top.
            </td>
            <td style="vertical-align: bottom">
                vertical-align: bottom.
                vertical-align: bottom.
                vertical-align: bottom.
                vertical-align: bottom.
                vertical-align: bottom.
                vertical-align: bottom.
            </td>
            <td style="vertical-align: middle">
                vertical-align: middle.
                vertical-align: middle.
                vertical-align: middle.
                vertical-align: middle.
                vertical-align: middle.
                vertical-align: middle.
            </td>
        </tr>
    </table>
</section>

</body>
</html>
